/*

var initData = function(num){
    var url = base+"/projectCenter/sjps/queryFileList";
    var param = {
        page_num:num,
        page_size:"10",
        project_id:project_id
    };
    $.ajax({
        url: url,
        data: param,
        success: function (data, textStatus, jqXHR) {
            if(data != null){
                var pageCount = data.pager.pageCount;
                var dataObj ={
                    "list":data.list,
                    "dataTool":{
                        "title":{
                            //"id":"id",
                            "template_name": "合成模板名称"
                            ,"template_code": "合成模板编号"
                            ,"version_number":"版本号"
                            ,"create_time":"创建时间"
                            ,"update_time":"修改时间"
                            ,"operation":"操作"
                        },
                        "titleCheckbox":false,
                        "btn":[{"event":"merge","name":"合成"},{"event":"show","name":"查看"}]
                    }
                };
                showPageTable('view', dataObj,num,pageCount,"initData");
            }
        },
        error: function () {
        }
    });

}*/

var merge = function(wjid) {
    var url = base+"/projectCenter/sjps/toMerge/"+project_id+"/"+wjid;
    $.get(url, function(result){
	   $("#mention_data").html("");
	   $("#mention_data").html(result);
    });
	return false;
}

var show = function (id) {
    var url = base+"/projectCenter/sjps/mergeWord/"+project_id+"/"+id+"/0";
    POBrowser.openWindowModeless(url,'width=1050px;height=900px;');
}

var mentionDetail = function(id) {
    var url = base+"/projectCenter/sjps/mentionDetail/"+project_id+"/"+id;
    $.get(url, function(result){
        $("#mention_data").html("");
        $("#mention_data").html(result);
    });
    return false;
}

var mentionDetailJgh = function(id) {
    var url = base+"/projectCenter/sjps/mentionDetailJgh/"+project_id+"/"+id;
    $.get(url, function(result){
        $("#mention_data").html("");
        $("#mention_data").html(result);
    });
    return false;
}
var project_id = $.trim($("#project_id").val());

$(document).ready(function(){
    //initData(1);
});